<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="jquery-3.3.1.min.js"></script>
</head>

<body>
    <h1>Hello world!</h1>
    <div id="content">

    </div>
    <script>
        let content = document.getElementById('content')
        $.get('http://localhost:3000/api/v1/topics')
            .done(
                res => {
                    console.log(res)
                }
            )
            .fail(e => {
                console.log('请求数据失败')
            })
    </script>
</body>

</html>